<?php
namespace Common\Model;

/**
 * 房型初始化表
 * @modify zhangzhen 2016-12-23 创建
 */

Class HourRoomInitModel extends BaseModel
{
    protected $trueTableName = 'tb_hour_room_init';
    protected function _before_insert(&$data, $options) {}
    protected function _before_update(&$data, $options) {}
   
    public function getInfo($hotelId) {
        $options = [
            'hotelentity_id' => $hotelId,
        ];
        $result = $this->where($options)->find();
        return empty($result) ? [] : $result;
    }
}
